﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Symbonix.Library.Framework;
using System.Web;
using System.Web.Caching;

namespace Symbonix.NorSoNet.Framework.BLL
{
    public class ModuleManager : ModuleBase
    {
        public static Symbonix.NorSoNet.Framework.BLL.IFrameworkFactory FrameworkFactory
        {
            get
            {
                if (HttpContext.Current.Cache["FrameworkFactory"] == null)
                    HttpContext.Current.Cache.Insert("FrameworkFactory", SingleInstanceFrameworkFactory.GetInstance(), null,
                        Cache.NoAbsoluteExpiration, Cache.NoSlidingExpiration);
                return (HttpContext.Current.Cache["FrameworkFactory"] as IFrameworkFactory);
            }
        }

        public override bool Install()
        {
            throw new NotImplementedException();
        }

        public override bool Uninstall()
        {
            throw new NotImplementedException();
        }

        public override Symbonix.Library.DataStructure.ReadWriteCustomCollection<IModule> GetAllModules()
        {
            throw new NotImplementedException();
        }

        public override bool Create(string name, Guid signature, string assemblyName)
        {
            throw new NotImplementedException();
        }
    }
}
